<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>hello world</title>
    <script type="text/javascript" src="../assests/js/vue.js"></script>
</head>
<body>
    <h1>VUE--实例</h1>
    <hr>
    <header></header>
    <script>
        var header_a = Vue.extend({
            template:`<div> {{ message }} -- {{ a }}</div>`,
            data:function(){
                return {
                    
                }
            },
            props:["a","message"]
        });
        new header_a({propsData:{message:"小明卖了",a:"12杯咖啡！"}}).$mount("header");
    </script>
</body>
</html>